#ifndef ALTERWIDGET_H
#define ALTERWIDGET_H

#include <QWidget>
#include <QPushButton>
#include <QLabel>
#include <QLineEdit>
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QString>
#include <QMessageBox>
#include <QTableWidget>
#include <QVector>
#include <QComboBox>


#include "control/mycontrol.h"
#include "model/basemodel.h"
#include "model/usermodel.h"
#include "data/user.h"

class AlterWidget : public QWidget
{
    Q_OBJECT
public:
    explicit AlterWidget(QWidget *parent = nullptr);
    void init_Control();
    void init_Widget();
    void init_Connect();//初始化连接信号和槽
    QString searchId();
    int userAlter();

private:
    QPushButton *returnBtn;
    QPushButton *confirmBtn;
    QLineEdit *idEt;
    QLineEdit *confirmEt;
    QLabel *idLab;
    QComboBox *confirmCombo;
    QHBoxLayout *btnhLay;
    QHBoxLayout *otherhLay;
    QHBoxLayout *boxhLay;
    QVBoxLayout *vLay;
    BaseModel *model;
    MyControl *control;
    User *user;
    int index;
signals:
    void returnManager();

public slots:
     void on_retutrnBtn_cliked();
     void on_confirmBtn_cliked();
     void on_Index_Changed(int index);


};

#endif // ALTERWIDGET_H
